package com.zhuiYun.project.api.ordersappraise.controller;

import com.zhuiYun.project.api.ordersappraise.entity.OrdersAppraiseEntity;
import com.zhuiYun.project.api.ordersappraise.service.OrdersAppraiseService;
import com.zhuiYun.project.common.response.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

/**
 * 订单评价
 * LC: 2023-04-05 14:24
 */
@RestController
@RequestMapping("/ordersAppraise")
@Api(tags = "订单评价模块")
@CrossOrigin
public class OrdersAppraiseController {

    @Autowired
    OrdersAppraiseService ordersAppraiseService;

    /**
     * @descriptions 新增订单评价
     * LC: 2023-04-05 15:27
     */
    @PostMapping("/saveOrdersAppraise")
    @ApiOperation(value = "新增订单评价")
    public CommonResult saveOrdersAppraise(MultipartRequest file, MultipartFile[] multipartFiles, OrdersAppraiseEntity ordersAppraiseEntity) {
        return CommonResult.ok(ordersAppraiseService.saveOrdersAppraise(file, multipartFiles, ordersAppraiseEntity));
    }
}



